<template>
    <div>
        <lottie :options="defaultOptions" :height="200" :width="200" v-on:animCreated="handleAnimation" />
    </div>
</template>

<script>
    import animationData from '../../../assets/json/loading';
    import lottie from 'vue-lottie';

    export default {
        name: "SmallIcon",
        data(){
            return{
                defaultOptions: { animationData: animationData },
                animationSpeed: 1,
                anim: {},
            }
        },
        methods:{
            handleAnimation(anim) {
                this.anim = anim;
            },
        },
        components:{
            'lottie':lottie,
        }
    }
</script>

<style scoped>

</style>